EasyPQC.Rotation
The Rotation class is responsible for generating and rotating session keys, typically used to create a new session key by hashing a base key multiple times with salt for enhanced security.
Generates an initial key and salt combination. The key is hashed using the ShakeDigest (SHAKE256) algorithm 1000 times along with a randomly generated salt. The resulting key and salt are returned as Base64-encoded strings.
Rotates an existing key multiple times based on the number of rotations specified. Each rotation involves hashing the key and the salt using the ShakeDigest algorithm. After the specified number of rotations, the resulting key is returned as a Base64-encoded string.
Converts an input string to a Base64-encoded string.